//
//  UIBarButtonItem+Category.h
//  PatientiOS
//
//  Created by MaShaoHua on 2024/4/28.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIBarButtonItem (Category)

typedef void(^BarButtonItemBlock) ();

/**
 *  用图片创建barButtonItem
 */
+ (instancetype)barButtonItemWithImage:(NSString *)image andBarButtonItemBlock:(BarButtonItemBlock)barButtonItemBlock;

/**
 *  纯文字创建barButtonItem 白色文字
 */
+ (instancetype)barButtonItemWithTitle:(NSString *)title andBarButtonItemBlock:(BarButtonItemBlock)barButtonItemBlock;

/**
 *  纯文字创建barButtonItem 自定义文字
 */
+(instancetype)barButtonItemWithTitle:(NSString *)title titleColor:(UIColor *)titleColor andBarButtonItemBlock:(BarButtonItemBlock)barButtonItemBlock;

+(instancetype)barButtonRightItemWithImage:(NSString *)image andBarButtonItemBlock:(BarButtonItemBlock)barButtonItemBlock;

@end

NS_ASSUME_NONNULL_END

